/**
 * @date 4:32:32 PM
 * EducationAdminController.java
 * Administrator
 * TODO
 */
package com.qs.education.controller;

import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.qs.education.bean.beans.EducationAdminResponse;
import com.qs.education.service.IAdminAPPService;

/**
 * @class EducationAdminController
 * @author Brooks
 * @description
 * @date Oct 17, 2018
 */

@RestController
public class EducationAdminController {
	@Autowired
	private IAdminAPPService iEducationAdminService;

	private final Logger log = Logger.getLogger(this.getClass());

	/**
	 * @class 根据用户名和密码登录后台
	 * @author Brooks
	 * @description
	 * @date Oct 17, 2018
	 */
	@RequestMapping("/getAdmin")
	public Map<String, Object> getAdmin(String name, String password) {
		log.info("APP端逻辑");
		EducationAdminResponse educationAdmin = iEducationAdminService.getEducationAdmin("admin", "12345");
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("educationAdmin", educationAdmin);
		return map;
	}
}
